import request from "@/utils/request";

//获取协议内容
export const getAgreementList = props => {
  return request({
    url: "/mall/agreement/getAgreementList",
    method: "get",
    params: props
  });
};

//查询欢迎语
export const getWelcome = props => {
  return request({
    url: "/mall/agreement/getWelcome",
    method: "get",
    params: props
  });
};

//查询权威标识icon
export const getIcons = props => {
  return request({
    url: "/mall/Icon/getIcons",
    method: "get",
    params: props
  });
};

//查询下架时间、删除时间
export const getShopParams = props => {
  return request({
    url: "/mall/agreement/getShopParams",
    method: "get",
    params: props
  });
};

//修改协议或者欢迎语
export const update = props => {
  return request({
    url: "/mall/agreement/update",
    method: "post",
    data: props
  });
};

//修改权威标识icon
export const updateIcons = props => {
  return request({
    url: "/mall/Icon/updateIcons",
    method: "post",
    data: props
  });
};

//修改下架、删除延迟时间
export const updateShopParams = props => {
  return request({
    url: "/mall/agreement/updateShopParams",
    method: "post",
    data: props
  });
};
